package com.yykj.prescription.server.model.repository.prescription;

import com.yykj.prescription.server.model.entity.prescription.Prescription;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PrescriptionRepository extends JpaRepository<Prescription,String>, JpaSpecificationExecutor<Prescription> {
    List<Prescription> findAllByPrescriptionIdIn(List<String> prescriptionIds);
    List<Prescription> findAllByHospitalIdAndStatusIn(Integer hospitalId,List<Integer> statusList);
}
